package org.istone.mylife.component.security;

import java.io.Serializable;

import org.istone.mylife.component.security.authentication.Passphrase;
import org.istone.mylife.component.security.authentication.Password;
import org.istone.mylife.component.security.authorization.Privilege;
import org.istone.mylife.component.security.authorization.Role;

/**
 * 
 * @author Stone
 * @date Dec 19, 2011 10:13:17 PM
 */
public interface User extends Serializable {

    public Privilege[] getPrivileges();

    public Role[] getRoles();

    public String getName();

    public void setName();

    public Password getPassword();

    public void setPassword(Password password);

    public Passphrase getPassphrase();

    public void setPassphrase(Passphrase passphrase);

    public Property[] getProperties();

    public Property getProperty(String name);

    public void setProperties(Property... properties);

    public void setProperty(Property property);

}
